package com.ultimate.management.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ultimate.management.entity.SysMenu;
import com.ultimate.management.mapper.SysMenuMapper;
import com.ultimate.management.service.SysMenuService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author LH
 * @Date 2024/2/27 9:52
 * @PackageName com.ultimate.management.service.impl
 * @Description: 实现菜单Menu表
 */
@Service
public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper,SysMenu> implements SysMenuService {

    //通过Mybatis定义的UserId  -> 查询出List<SysMenu>

     public List<SysMenu> findMenuListById(Long userId){
         return baseMapper.findMenuListById(userId);
     }

}
